% November 19, 2022
%
% Added rule of degree 9
function quadRuleTtrh = quadRule3D
% Degree 3
quadRuleTtrh{3}.nodes = [0.3281633025163817   0.1080472498984286   0.3281633025163817 ...
    0.1080472498984286   0.3281633025163817   0.1080472498984286 ...
    0.015510092450854884 0.6758582503047142  ;
    0.3281633025163817   0.1080472498984286   0.3281633025163817 ...
    0.1080472498984286   0.015510092450854884 0.6758582503047142...
    0.3281633025163817   0.1080472498984286  ;
    0.3281633025163817   0.1080472498984286   0.015510092450854884 ...
    0.6758582503047142   0.3281633025163817   0.1080472498984286 ...
    0.3281633025163817   0.1080472498984286  ;
    0.015510092450854884 0.6758582503047142   0.3281633025163817 ...
    0.1080472498984286   0.3281633025163817   0.1080472498984286 ...
    0.3281633025163817   0.1080472498984286  ];

quadRuleTtrh{3}.weights = [0.1362178425370874 0.1137821574629126 0.1362178425370874...
    0.1137821574629126 0.1362178425370874 0.1137821574629126...
    0.1362178425370874 0.1137821574629126];

quadRuleTtrh{5}.nodes = [0.0927352503108912, 0.3108859192633006, 0.0927352503108912,...
    0.3108859192633006, 0.0927352503108912, 0.3108859192633006,...
    0.7217942490673264, 0.0673422422100982, 0.0455037041256496,...
    0.0455037041256496, 0.4544962958743504, 0.0455037041256496,...
    0.4544962958743504, 0.4544962958743504;
    0.0927352503108912, 0.3108859192633006, 0.0927352503108912,...
    0.3108859192633006, 0.7217942490673264, 0.0673422422100982,...
    0.0927352503108912, 0.3108859192633006, 0.0455037041256496,...
    0.4544962958743504, 0.0455037041256496, 0.4544962958743504,...
    0.0455037041256496, 0.4544962958743504;
    0.0927352503108912, 0.3108859192633006, 0.7217942490673264,...
    0.0673422422100982, 0.0927352503108912, 0.3108859192633006,...
    0.0927352503108912, 0.3108859192633006, 0.4544962958743504,...
    0.0455037041256496, 0.0455037041256496, 0.4544962958743504,...
    0.4544962958743504, 0.0455037041256496;
    0.7217942490673264, 0.0673422422100982, 0.0927352503108912,...
    0.3108859192633006, 0.0927352503108912, 0.3108859192633006,...
    0.0927352503108912, 0.3108859192633006, 0.4544962958743504,...
    0.4544962958743504, 0.4544962958743504, 0.0455037041256496,...
    0.0455037041256496, 0.0455037041256496];

quadRuleTtrh{5}.weights = [  0.073493043116362 , 0.1126879257180158, 0.073493043116362 , ...
    0.1126879257180158, 0.073493043116362 , 0.1126879257180158,...
    0.073493043116362 , 0.1126879257180158, 0.0425460207770815,...
    0.0425460207770815, 0.0425460207770815, 0.0425460207770815,...
    0.0425460207770815, 0.0425460207770815];


quadRuleTtrh{6}.nodes = [0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.3561913862225449, 0.8779781243961661, 0.0329863295731729,...
        0.0636610018750175, 0.0636610018750175, 0.2696723314583159,...
        0.0636610018750175, 0.2696723314583159, 0.2696723314583159,...
        0.0636610018750175, 0.0636610018750175, 0.6030056647916491,...
        0.0636610018750175, 0.6030056647916491, 0.6030056647916491;
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.3561913862225449, 0.8779781243961661, 0.0329863295731729,...
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.0636610018750175, 0.2696723314583159, 0.0636610018750175,...
        0.2696723314583159, 0.0636610018750175, 0.6030056647916491,...
        0.0636610018750175, 0.6030056647916491, 0.0636610018750175,...
        0.6030056647916491, 0.0636610018750175, 0.2696723314583159;
       0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.3561913862225449, 0.8779781243961661, 0.0329863295731729,...
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.2696723314583159, 0.0636610018750175, 0.0636610018750175,...
        0.6030056647916491, 0.6030056647916491, 0.0636610018750175,...
        0.6030056647916491, 0.0636610018750175, 0.0636610018750175,...
        0.2696723314583159, 0.2696723314583159, 0.0636610018750175;
       0.3561913862225449, 0.8779781243961661, 0.0329863295731729,...
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.2146028712591517, 0.0406739585346113, 0.3223378901422757,...
        0.6030056647916491, 0.6030056647916491, 0.6030056647916491,...
        0.0636610018750175, 0.0636610018750175, 0.0636610018750175,...
        0.2696723314583159, 0.2696723314583159, 0.2696723314583159,...
        0.0636610018750175, 0.0636610018750175, 0.0636610018750175];

 quadRuleTtrh{6}.weights = [0.0399227502581679, 0.0100772110553207, 0.0553571815436544,...
       0.0399227502581679, 0.0100772110553207, 0.0553571815436544,...
       0.0399227502581679, 0.0100772110553207, 0.0553571815436544,...
       0.0399227502581679, 0.0100772110553207, 0.0553571815436544,...
       0.0482142857142857, 0.0482142857142857, 0.0482142857142857,...
       0.0482142857142857, 0.0482142857142857, 0.0482142857142857,...
       0.0482142857142857, 0.0482142857142857, 0.0482142857142857,...
       0.0482142857142857, 0.0482142857142857, 0.0482142857142857];
   
   % Degree 7
quadRuleTtrh{7}.nodes = ...
    [       0.25              , 0.3157011497782028, 0.3157011497782028, ...
    0.3157011497782028, 0.0528965506653916, 0.0504898225983964, ...
    0.0504898225983964, 0.4495101774016036, 0.0504898225983964, ...
    0.4495101774016036, 0.4495101774016036, 0.188833831026001 , ...
    0.0212654725414831, 0.188833831026001 , 0.0212654725414831,...
    0.575171637587    , 0.8108302410985486, 0.188833831026001, ...
    0.0212654725414831, 0.575171637587    , 0.8108302410985486,...
    0.575171637587    , 0.8108302410985486, 0.188833831026001, ...
    0.0212654725414831, 0.188833831026001 , 0.0212654725414831,...
    0.0471607003609981, 0.1466388138184851, 0.188833831026001 ,...
    0.0212654725414831, 0.0471607003609981, 0.1466388138184851,...
    0.0471607003609981, 0.1466388138184851;                    ...
    0.25              , 0.3157011497782028, 0.3157011497782028,...
    0.0528965506653916, 0.3157011497782028, 0.0504898225983964,...
    0.4495101774016036, 0.0504898225983964, 0.4495101774016036,...
    0.0504898225983964, 0.4495101774016036, 0.188833831026001 ,...
    0.0212654725414831, 0.575171637587    , 0.8108302410985486,...
    0.188833831026001 , 0.0212654725414831, 0.575171637587    ,...
    0.8108302410985486, 0.188833831026001 , 0.0212654725414831,...
    0.0471607003609981, 0.1466388138184851, 0.188833831026001 ,...
    0.0212654725414831, 0.0471607003609981, 0.1466388138184851,...
    0.188833831026001 , 0.0212654725414831, 0.0471607003609981,...
    0.1466388138184851, 0.188833831026001 , 0.0212654725414831,...
    0.575171637587    , 0.8108302410985486;                    ...
    0.25              , 0.3157011497782028, 0.0528965506653916,...
    0.3157011497782028, 0.3157011497782028, 0.4495101774016036,...
    0.0504898225983964, 0.0504898225983964, 0.4495101774016036,...
    0.4495101774016036, 0.0504898225983964, 0.575171637587    ,...
    0.8108302410985486, 0.188833831026001 , 0.0212654725414831,...
    0.188833831026001 , 0.0212654725414831, 0.0471607003609981,...
    0.1466388138184851, 0.0471607003609981, 0.1466388138184851,...
    0.188833831026001 , 0.0212654725414831, 0.0471607003609981,...
    0.1466388138184851, 0.188833831026001 , 0.0212654725414831,...
    0.188833831026001 , 0.0212654725414831, 0.575171637587    ,...
    0.8108302410985486, 0.575171637587    , 0.8108302410985486,...
    0.188833831026001 , 0.0212654725414831;                    ...
    0.25              , 0.0528965506653916, 0.3157011497782028,...
    0.3157011497782028, 0.3157011497782028, 0.4495101774016036,...
    0.4495101774016036, 0.4495101774016036, 0.0504898225983964,...
    0.0504898225983964, 0.0504898225983964, 0.0471607003609981,...
    0.1466388138184851, 0.0471607003609981, 0.1466388138184851,...
    0.0471607003609981, 0.1466388138184851, 0.188833831026001 ,...
    0.0212654725414831, 0.188833831026001 , 0.0212654725414831,...
    0.188833831026001 , 0.0212654725414831, 0.575171637587    ,...
    0.8108302410985486, 0.575171637587    , 0.8108302410985486,...
    0.575171637587    , 0.8108302410985486, 0.188833831026001 ,...
    0.0212654725414831, 0.188833831026001 , 0.0212654725414831,...
    0.188833831026001 , 0.0212654725414831];
quadRuleTtrh{7}.weights = ...
    [0.0954852894641308, 0.042329581209967 , 0.042329581209967 , ...
    0.042329581209967 , 0.042329581209967 , 0.0318969278328576, ...
    0.0318969278328576, 0.0318969278328576, 0.0318969278328576, ...
    0.0318969278328576, 0.0318969278328576, 0.0372071307283346, ...
    0.0081107708299033, 0.0372071307283346, 0.0081107708299033, ...
    0.0372071307283346, 0.0081107708299033, 0.0372071307283346, ...
    0.0081107708299033, 0.0372071307283346, 0.0081107708299033, ...
    0.0372071307283346, 0.0081107708299033, 0.0372071307283346, ...
    0.0081107708299033, 0.0372071307283346, 0.0081107708299033, ...
    0.0372071307283346, 0.0081107708299033, 0.0372071307283346, ...
    0.0081107708299033, 0.0372071307283346, 0.0081107708299033, ...
    0.0372071307283346, 0.0081107708299033];



quadRuleTtrh{9}.nodes = [2.5000000000000000e-01, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 9.9999999814054907e-01,...
        5.1767639381421526e-01, 3.3170434535736870e-02,...
        8.6467324496375930e-01, 1.1229654600437609e-01,...
        1.1229654600437609e-01, 3.8770345399562389e-01,...
        1.1229654600437609e-01, 3.8770345399562389e-01,...
        3.8770345399562389e-01, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 2.5545792330413102e-03,...
        7.1835032644207453e-01, 3.4415910578175279e-02,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 2.5545792330413102e-03,...
        7.1835032644207453e-01, 3.4415910578175279e-02,...
        2.5545792330413102e-03, 7.1835032644207453e-01,...
        3.4415910578175279e-02, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 7.9702523262040248e-02,...
        2.1409793218724826e-01, 5.9830134980196892e-01,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 7.9702523262040248e-02,...
        2.1409793218724826e-01, 5.9830134980196892e-01,...
        7.9702523262040248e-02, 2.1409793218724826e-01,...
        5.9830134980196892e-01; ...
        2.5000000000000000e-01, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 9.9999999814054907e-01,...
        5.1767639381421526e-01, 3.3170434535736870e-02,...
        8.6467324496375930e-01, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 1.1229654600437609e-01,...
        3.8770345399562389e-01, 1.1229654600437609e-01,...
        3.8770345399562389e-01, 1.1229654600437609e-01,...
        3.8770345399562389e-01, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        2.5545792330413102e-03, 7.1835032644207453e-01,...
        3.4415910578175279e-02, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        2.5545792330413102e-03, 7.1835032644207453e-01,...
        3.4415910578175279e-02, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        7.9702523262040248e-02, 2.1409793218724826e-01,...
        5.9830134980196892e-01, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        7.9702523262040248e-02, 2.1409793218724826e-01,...
        5.9830134980196892e-01, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        7.9702523262040248e-02, 2.1409793218724826e-01,...
        5.9830134980196892e-01, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        2.5545792330413102e-03, 7.1835032644207453e-01,...
        3.4415910578175279e-02;
        2.5000000000000000e-01, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 9.9999999814054907e-01,...
        5.1767639381421526e-01, 3.3170434535736870e-02,...
        8.6467324496375930e-01, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 3.8770345399562389e-01,...
        1.1229654600437609e-01, 1.1229654600437609e-01,...
        3.8770345399562389e-01, 3.8770345399562389e-01,...
        1.1229654600437609e-01, 2.5545792330413102e-03,...
        7.1835032644207453e-01, 3.4415910578175279e-02,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        7.9702523262040248e-02, 2.1409793218724826e-01,...
        5.9830134980196892e-01, 7.9702523262040248e-02,...
        2.1409793218724826e-01, 5.9830134980196892e-01,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 7.9702523262040248e-02,...
        2.1409793218724826e-01, 5.9830134980196892e-01,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        2.5545792330413102e-03, 7.1835032644207453e-01,...
        3.4415910578175279e-02, 2.5545792330413102e-03,...
        7.1835032644207453e-01, 3.4415910578175279e-02,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01;
        2.5000000000000000e-01, 9.9999999814054907e-01,...
        5.1767639381421526e-01, 3.3170434535736870e-02,...
        8.6467324496375930e-01, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 6.1981697552226933e-10,...
        1.6077453539526160e-01, 3.2227652182142102e-01,...
        4.5108918345413578e-02, 3.8770345399562389e-01,...
        3.8770345399562389e-01, 3.8770345399562389e-01,...
        1.1229654600437609e-01, 1.1229654600437609e-01,...
        1.1229654600437609e-01, 7.9702523262040248e-02,...
        2.1409793218724826e-01, 5.9830134980196892e-01,...
        7.9702523262040248e-02, 2.1409793218724826e-01,...
        5.9830134980196892e-01, 7.9702523262040248e-02,...
        2.1409793218724826e-01, 5.9830134980196892e-01, ...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 2.5545792330413102e-03,...
        7.1835032644207453e-01, 3.4415910578175279e-02,...
        2.5545792330413102e-03, 7.1835032644207453e-01,...
        3.4415910578175279e-02, 2.5545792330413102e-03,...
        7.1835032644207453e-01, 3.4415910578175279e-02,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01, 4.5887144875245922e-01,...
        3.3775870685338598e-02, 1.8364136980992790e-01,...
        4.5887144875245922e-01, 3.3775870685338598e-02,...
        1.8364136980992790e-01];

quadRuleTtrh{9}.weights = ...
      [5.801054891248025e-02, 6.431928175925639e-05,...
       2.317333846242546e-02, 2.956291233542929e-02,...
       8.063979979616182e-03, 6.431928175925639e-05,...
       2.317333846242546e-02, 2.956291233542929e-02,...
       8.063979979616182e-03, 6.431928175925639e-05,...
       2.317333846242546e-02, 2.956291233542929e-02,...
       8.063979979616182e-03, 6.431928175925639e-05,...
       2.317333846242546e-02, 2.956291233542929e-02,...
       8.063979979616182e-03, 3.813408010370246e-02,...
       3.813408010370246e-02, 3.813408010370246e-02,...
       3.813408010370246e-02, 3.813408010370246e-02,...
       3.813408010370246e-02, 8.384422198298552e-03,...
       1.023455935274533e-02, 2.052491596798814e-02,...
       8.384422198298552e-03, 1.023455935274533e-02,...
       2.052491596798814e-02, 8.384422198298552e-03,...
       1.023455935274533e-02, 2.052491596798814e-02,...
       8.384422198298552e-03, 1.023455935274533e-02,...
       2.052491596798814e-02, 8.384422198298552e-03,...
       1.023455935274533e-02, 2.052491596798814e-02,...
       8.384422198298552e-03, 1.023455935274533e-02,...
       2.052491596798814e-02, 8.384422198298552e-03,...
       1.023455935274533e-02, 2.052491596798814e-02,...
       8.384422198298552e-03, 1.023455935274533e-02,...
       2.052491596798814e-02, 8.384422198298552e-03,...
       1.023455935274533e-02, 2.052491596798814e-02,...
       8.384422198298552e-03, 1.023455935274533e-02,...
       2.052491596798814e-02, 8.384422198298552e-03,...
       1.023455935274533e-02, 2.052491596798814e-02,...
       8.384422198298552e-03, 1.023455935274533e-02,...
       2.052491596798814e-02]; 




end



